﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    public class Ticket
    {
        [DataMember]
        private Show show;
        [DataMember]
        private double price;
        [DataMember]
        private Seat seat;

        public Ticket(Show show, double price, Seat seat)
        {
            this.show = show;
            this.price = price;
            this.seat = seat;
        }

        public Ticket()
        {
            this.show = null;
            this.price = -1;
            this.seat = null;
        }

        public Show Show
        {
            get { return show; }
            set { show = value; }
        }

        public double Price
        {
            get { return price; }
            set { price = value; }
        }

        public Seat Seat
        {
            get { return seat; }
            set { seat = value; }
        }
    }
}
